/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.enetities;

/**
 *
 * @author Hieu.Nguyen
 */
public class Account {
    private int idAccount;
    private String userName;
    private String password;
    private Role idRole;
    private boolean actived;

    
    public Account(){};
    
    public Account(String userName, String password, Role idRole, boolean actived) {
        this.userName = userName;
        this.password = password;
        this.idRole = idRole;
        this.actived = actived;
    }

    public Account(int idAccount, String userName, String password, Role idRole, boolean actived) {
        this.idAccount = idAccount;
        this.userName = userName;
        this.password = password;
        this.idRole = idRole;
        this.actived = actived;
    }
    
    

    /**
     * @return the idAccount
     */
    public int getIdAccount() {
        return idAccount;
    }

    /**
     * @param idAccount the idAccount to set
     */
    public void setIdAccount(int idAccount) {
        this.idAccount = idAccount;
    }

    /**
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * @param userName the userName to set
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the idRole
     */
    public Role getIdRole() {
        return idRole;
    }

    /**
     * @param idRole the idRole to set
     */
    public void setIdRole(Role idRole) {
        this.idRole = idRole;
    }

    /**
     * @return the actived
     */
    public boolean isActived() {
        return actived;
    }

    /**
     * @param actived the actived to set
     */
    public void setActived(boolean actived) {
        this.actived = actived;
    }
  }
    
    
    
    


